# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hachoir-parser
pkgver=1.3.4
pkgrel=4
pkgdesc='Most common file format parsers written using hachoir-core.'
arch=('any')
url='http://bitbucket.org/haypo/hachoir/wiki/hachoir-parser'
license=('GPL2')
depends=('python2' 'hachoir-core')
source=("http://cheeseshop.python.org/packages/source/h/hachoir-parser/hachoir-parser-$pkgver.tar.gz")
sha512sums=('d1c01af0fc7dc59fc4fed57401cbbb3ba498d1a6de78322f47ff139ac10f1ad1d5713011c04fde610267b40188c84ff79397f9c8d309c1ab5cc3384c03577948')

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

